home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
mymem1
/
myreadme.txt
< prev
next >
Wrap
Text File
|
1992-01-26
|
5KB
|
111 lines
MyMemory Version 1.2
Copyright (c) 1991 by Dirk Rogers
The following code and executable is provided free. The code may be used
as you like, so long as this program is not reproduced or charged for.
The author takes no responsibility for the use or misuse of this code.
The following files are provided in MYMEM12.zip:
MYMEMORY EXE 42096 1-27-92 10:20a
MYMEMORY ICO 766 1-27-92 10:20a
MYMEMORY MAK 136 1-27-92 10:20a
MYGLOBAL BAS 3953 1-27-92 10:20a
MYGP FRM 1818 1-27-92 10:20a
MYHELP FRM 2021 1-27-92 10:20a
MYMEMORY FRM 12228 1-27-92 10:20a
MYSET FRM 7098 1-27-92 10:20a
MYMEMRY BAS 12539 1-27-92 10:20a
MYREADME TXT 4938 1-27-92 10:20a
This software requires VBRUN100.DLL to execute. You will find this file
provided with Microsoft Visual Basic or in the CompuServe BASIC Forum.
I hope you find this program somewhat entertaining. The code is presented here
simply as a learning experience. I imagine there are many things that could
have been done better.
Included in this code are examples of:
1. Drawing buttons ( did not use button objects on playing field)
2. Reading and writing INI files
3. Managing size of Forms and Labels
4. Determining screen resolution
5. Using FloodFill to color areas
Have Fun!
Dirk
CompuServe ID 70451,2723
Comments Appreciated
---------------------------------------------------------------------
Some Notes on Running MyMemory
------------------------------
This program requires Microsoft Windows Version 3.0, VBRUN100.DLL and
MYMEMORY.EXE to execute. VBRUN100.DLL is available with Microsoft
Visual Basic or from CompuServe's BASIC Forum Library. All other files
provided in MYMEM12.ZIP are development files.
The program is started by executing MYMEMORY.EXE under Windows 3.0.
See Windows 3.0 manual for these details.
Note: If using Norton Desktop for Windows, this program may present
itself behind Norton Desktop. You will then need to minimize Norton
Desktop or click on MyMemory to bring it forward. (I haven't at this
time figured out how to fix this yet)
MyMemory begins with a gray background and blank colored text areas.
To start a game either:
1. Click on the gray background
2. From the keyboard, hit F2
3. From the menu select Game and then New Game
You will then be given a field of squares (buttons). Select two squares
to see if they match. Matching squares remain visible. Unmatched squares
will hide after 2 seconds. Game ends when all squares are visible.
Clicking on a completed field will start a new game. MyMemory will also
remember the number of moves (guesses made) to complete a game.
---------------------------------------------------------------------------
Game - Settings (keyboard F3)
-----------------------------
This game allows you to select different field sizes, the time an unmatched
pair stays visible, and also save settings to an INI file.
MyMemory checks the resolution of your screen and will not allow the form
size to exceed that. I have checked this on both 640 X 480 and 800 X 600.
If a field size will not fit within the resolution of your screen, specific
selections will be grayed (not selectable). You should then select a smaller
square size to allow for the larger playing fields. Note that when selecting
the smallest horizontal size the label field widths are doubled thus requiring
a small square size to use with 640 X 480.
You may save these settings and best scores to an initialization file. The
selections allow you to save the settings to either:
1. MYMEMORY.INI - a game unique file
2. WIN.INI - the windows initialization file
(this may not be appropriate if too large)
3. ENTPACK.INI - the initialization file that is used by the
Windows Entertainment Package.
Notes:
Selecting "Don't Save" will not remove old settings from INI file. It will
only keep current settings from being saved when you exit the current game.
If a previous game's settings were saved it will find those next time the
game is started. You must edit the INI file and remove the [MyMemory] Section
if you wish not to have any profile found when starting the program.
(Something to correct in a later version, perhaps)
Also, MyMemory searches first for MYMEMORY.INI, then ENTPACK.INI and finally
WIN.INI. It will use the first settings found.
---------------------------------------------------------------------------
Game - Show Record (keyboard F4)
-----------------------------
This will show you the current scores for each field size available. You may
also print these scores or clear the old scores.
----------------------------------------------------------------------------